home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / WTJ208.ZIP / FRANTZ / VB / VBTARGET.H < prev    next >
Text File  |  1993-04-10  |  2KB  |  69 lines

  1. /* ------------------------------ VBTARGET.H -------------------------
  2.  *    Include file
  3.  * ---------------------------------------------------------------- */
  4.  
  5. // ---- Global Variable
  6. HANDLE            hmodDLL;            // DLL's Handle
  7.  
  8.  
  9. // ---- Macro
  10. #define OFFSETIN(struc,field)      ((USHORT)&(((struc *)0)->field))
  11.  
  12. // ---- Bitmaps
  13. #define IDBMP_TARGET        8000
  14. #define IDBMP_TARGETDOWN    8001
  15. #define IDBMP_TARGETMONO    8003
  16. #define IDBMP_TARGETEGA     8006
  17.  
  18. // ---- Type
  19. #define TYPE_CIRCLES        0
  20. #define TYPE_PLAIN            1
  21. #define TYPE_BITMAP            2
  22. #define TYPE_MAX            2
  23.  
  24. // ---- Control Structure
  25. typedef struct _TARGET
  26. {
  27.     LONG        XPos;                // X Pos
  28.     LONG        YPos;                // Y Pos
  29.     SHORT        Type;                // Type
  30.     HPIC        hpicPix;            // Picture
  31. }
  32.                 TARGET;
  33.  
  34. typedef TARGET FAR *PTARGET;
  35.  
  36. // ---- Properties indices
  37. #define IPROP_TARGET_CTLNAME        0
  38. #define IPROP_TARGET_INDEX            1
  39. #define IPROP_TARGET_BACKCOLOR        2
  40. #define IPROP_TARGET_LEFT            3
  41. #define IPROP_TARGET_TOP            4
  42. #define IPROP_TARGET_WIDTH            5
  43. #define IPROP_TARGET_HEIGHT            6
  44. #define IPROP_TARGET_VISIBLE        7
  45. #define IPROP_TARGET_ENABLED        8
  46. #define IPROP_TARGET_PARENT            9
  47. #define IPROP_TARGET_DRAGMODE        10
  48. #define IPROP_TARGET_DRAGICON        11
  49. #define IPROP_TARGET_TAG            12
  50. #define IPROP_TARGET_TABINDEX        13
  51. #define IPROP_TARGET_TABSTOP        14
  52. #define IPROP_TARGET_BORDERSTYLEON    15
  53. #define IPROP_TARGET_XPOS            16
  54. #define IPROP_TARGET_YPOS            17
  55. #define IPROP_TARGET_TYPE            18
  56. #define IPROP_TARGET_PICTURE        19
  57.  
  58. // ---- Events Indices
  59. #define IEVENT_TARGET_CHANGE        0
  60. #define IEVENT_TARGET_CLICK            1
  61. #define IEVENT_TARGET_DBLCLICK        2
  62. #define IEVENT_TARGET_DRAGDROP        3
  63. #define IEVENT_TARGET_DRAGOVER        4
  64. #define IEVENT_TARGET_GOTFOCUS        5
  65. #define IEVENT_TARGET_LOSTFOCUS        6
  66.  
  67. // ---- Declarations
  68. LRESULT CALLBACK _export TargetCtlProc (HCTL, HWND, WORD, WORD, LONG);
  69.